<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_compass.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__compass_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_compass.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_compass.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_compass_rose.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_text.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;qevent.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;qmap.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">class </span>QwtCompassScaleDraw::PrivateData</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="class_q_map.html">QMap&lt; double, QString &gt;</a> <a class="code" href="class_qwt_compass_scale_draw.html#aeeb7f7f2267b0a607f47f52cdc42b062">labelMap</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;};</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_qwt_compass_scale_draw.html#af5454a1e7d4d511e43c91f008fe65c06">   28</a></span>&#160;<a class="code" href="class_qwt_compass_scale_draw.html#af5454a1e7d4d511e43c91f008fe65c06">QwtCompassScaleDraw::QwtCompassScaleDraw</a>()</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html#af975410588db6103f281e49d0b43c6a6">enableComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a>, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html#af975410588db6103f281e49d0b43c6a6">enableComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a>, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="class_q_map.html">QMap&lt; double, QString &gt;</a>&amp; map = m_data-&gt;labelMap;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    map.insert( 0.0, QString::fromLatin1( <span class="stringliteral">&quot;N&quot;</span> ) );</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    map.insert( 45.0, QString::fromLatin1( <span class="stringliteral">&quot;NE&quot;</span> ) );</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    map.insert( 90.0, QString::fromLatin1( <span class="stringliteral">&quot;E&quot;</span> ) );</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    map.insert( 135.0, QString::fromLatin1( <span class="stringliteral">&quot;SE&quot;</span> ) );</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    map.insert( 180.0, QString::fromLatin1( <span class="stringliteral">&quot;S&quot;</span> ) );</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    map.insert( 225.0, QString::fromLatin1( <span class="stringliteral">&quot;SW&quot;</span> ) );</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    map.insert( 270.0, QString::fromLatin1( <span class="stringliteral">&quot;W&quot;</span> ) );</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    map.insert( 315.0, QString::fromLatin1( <span class="stringliteral">&quot;NW&quot;</span> ) );</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#if 0</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    map.insert( 22.5, QString::fromLatin1( <span class="stringliteral">&quot;NNE&quot;</span> ) );</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    map.insert( 67.5, QString::fromLatin1( <span class="stringliteral">&quot;NEE&quot;</span> ) );</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    map.insert( 112.5, QString::fromLatin1( <span class="stringliteral">&quot;SEE&quot;</span> ) );</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    map.insert( 157.5, QString::fromLatin1( <span class="stringliteral">&quot;SSE&quot;</span> ) );</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    map.insert( 202.5, QString::fromLatin1( <span class="stringliteral">&quot;SSW&quot;</span> ) );</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    map.insert( 247.5, QString::fromLatin1( <span class="stringliteral">&quot;SWW&quot;</span> ) );</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    map.insert( 292.5, QString::fromLatin1( <span class="stringliteral">&quot;NWW&quot;</span> ) );</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    map.insert( 337.5, QString::fromLatin1( <span class="stringliteral">&quot;NNW&quot;</span> ) );</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="class_qwt_compass_scale_draw.html#ab8f8902087f6ba6428d637395451adfa">   63</a></span>&#160;<a class="code" href="class_qwt_compass_scale_draw.html#af5454a1e7d4d511e43c91f008fe65c06">QwtCompassScaleDraw::QwtCompassScaleDraw</a>( <span class="keyword">const</span> <a class="code" href="class_q_map.html">QMap&lt; double, QString &gt;</a>&amp; map )</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;{</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    m_data-&gt;labelMap = map;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html#af975410588db6103f281e49d0b43c6a6">enableComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a>, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html#af975410588db6103f281e49d0b43c6a6">enableComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a>, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;}</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_qwt_compass_scale_draw.html#a8390876c77a3e358f0a2026846e82079">   73</a></span>&#160;<a class="code" href="class_qwt_compass_scale_draw.html#a8390876c77a3e358f0a2026846e82079">QwtCompassScaleDraw::~QwtCompassScaleDraw</a>()</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;}</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_qwt_compass_scale_draw.html#a55c807e3399832b53b4a9783780f9dd0">   90</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_compass_scale_draw.html#a55c807e3399832b53b4a9783780f9dd0">QwtCompassScaleDraw::setLabelMap</a>( <span class="keyword">const</span> <a class="code" href="class_q_map.html">QMap&lt; double, QString &gt;</a>&amp; map )</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    m_data-&gt;labelMap = map;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_qwt_compass_scale_draw.html#aeeb7f7f2267b0a607f47f52cdc42b062">   99</a></span>&#160;<a class="code" href="class_q_map.html">QMap&lt; double, QString &gt;</a> <a class="code" href="class_qwt_compass_scale_draw.html#aeeb7f7f2267b0a607f47f52cdc42b062">QwtCompassScaleDraw::labelMap</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;labelMap;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;}</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="class_qwt_compass_scale_draw.html#a4fd750901f43b37bdfbfc8eb784ba185">  116</a></span>&#160;<a class="code" href="class_qwt_text.html">QwtText</a> <a class="code" href="class_qwt_compass_scale_draw.html#a4fd750901f43b37bdfbfc8eb784ba185">QwtCompassScaleDraw::label</a>( <span class="keywordtype">double</span> value )<span class="keyword"> const</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordflow">if</span> ( qFuzzyCompare( value + 1.0, 1.0 ) )</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        value = 0.0;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordflow">if</span> ( value &lt; 0.0 )</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        value += 360.0;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="class_q_map.html">QMap&lt; double, QString &gt;::const_iterator</a> it =</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        m_data-&gt;labelMap.constFind( value );</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordflow">if</span> ( it != m_data-&gt;labelMap.constEnd() )</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keywordflow">return</span> *it;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_text.html">QwtText</a>();</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="keyword">class </span>QwtCompass::PrivateData</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;{</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    PrivateData():</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <a class="code" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">rose</a>( NULL )</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    ~PrivateData()</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">rose</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <a class="code" href="class_qwt_compass_rose.html">QwtCompassRose</a>* <a class="code" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">rose</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;};</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#a05357e2950a3dc534e68e3c21f6c6b94">  158</a></span>&#160;<a class="code" href="class_qwt_compass.html#a05357e2950a3dc534e68e3c21f6c6b94">QwtCompass::QwtCompass</a>( QWidget* parent )</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    : <a class="code" href="class_qwt_dial.html">QwtDial</a>( parent )</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;{</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <a class="code" href="class_qwt_dial.html#a2ed8a0642e1c612013ba812c7e037404">setScaleDraw</a>( <span class="keyword">new</span> <a class="code" href="class_qwt_compass_scale_draw.html">QwtCompassScaleDraw</a>() );</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <a class="code" href="class_qwt_dial.html#a3f64c6fbac747f735e57c2073e93bc50">setOrigin</a>( 270.0 );</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <a class="code" href="class_qwt_abstract_slider.html#ada27ca51ab146554b981fafed38e41e0">setWrapping</a>( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a40fdb4572ad8fdec8b93766ff5f8eda8">setScaleMaxMajor</a>( 36 );</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a6520bb1e52571f865b21b3710786a4db">setScaleMaxMinor</a>( 10 );</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">setScale</a>( 0.0, 360.0 ); <span class="comment">// degrees as default</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <a class="code" href="class_qwt_abstract_slider.html#a60eea9d9996c99abcb7d50f5ed2634f8">setTotalSteps</a>( 360 );</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;}</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#af6cc3b946f3761f7ce53d3a2ec000817">  176</a></span>&#160;<a class="code" href="class_qwt_compass.html#af6cc3b946f3761f7ce53d3a2ec000817">QwtCompass::~QwtCompass</a>()</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;{</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;}</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160; </div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#acf355d02f43378b6bde605f7b5d017e3">  189</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_compass.html#acf355d02f43378b6bde605f7b5d017e3">QwtCompass::drawScaleContents</a>( QPainter* painter,</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="keyword">const</span> QPointF&amp; center, <span class="keywordtype">double</span> radius )<span class="keyword"> const</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    QPalette::ColorGroup cg;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordflow">if</span> ( isEnabled() )</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        cg = hasFocus() ? QPalette::Active : QPalette::Inactive;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        cg = QPalette::Disabled;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keywordtype">double</span> north = <a class="code" href="class_qwt_dial.html#a49356bf9512363f3233e9bf4018b8f30">origin</a>();</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_slider.html#a9fb9fae0f664460bb487a12541b38d56">isValid</a>() )</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_dial.html#a7b35111549b198697fa24e8085342797">mode</a>() == <a class="code" href="class_qwt_dial.html#a7376f53193014b91643350e6e6bc85ada95a22f59ec832d22f011a9421f528c41">RotateScale</a> )</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;            north -= <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>();</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    }</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> margin = 4;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <a class="code" href="class_qwt_compass.html#a9df297eca6d1da01e36fa14d1206831a">drawRose</a>( painter, center, radius - margin, 360.0 - north,  cg );</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;}</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#a9df297eca6d1da01e36fa14d1206831a">  218</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_compass.html#a9df297eca6d1da01e36fa14d1206831a">QwtCompass::drawRose</a>( QPainter* painter, <span class="keyword">const</span> QPointF&amp; center,</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keywordtype">double</span> radius, <span class="keywordtype">double</span> north, QPalette::ColorGroup cg )<span class="keyword"> const</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;rose )</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        m_data-&gt;rose-&gt;draw( painter, center, radius, north,  cg );</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;}</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#a06456c0c52107bfa8b1d1267fba5b86f">  232</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_compass.html#a06456c0c52107bfa8b1d1267fba5b86f">QwtCompass::setRose</a>( <a class="code" href="class_qwt_compass_rose.html">QwtCompassRose</a>* rose )</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;{</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">rose</a> != m_data-&gt;rose )</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    {</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;rose )</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            <span class="keyword">delete</span> m_data-&gt;rose;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        m_data-&gt;rose = <a class="code" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">rose</a>;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        update();</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    }</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;}</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">  248</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_compass_rose.html">QwtCompassRose</a>* <a class="code" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">QwtCompass::rose</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;rose;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;}</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#a99477d676bd866acd1a418615cba423b">  257</a></span>&#160;<a class="code" href="class_qwt_compass_rose.html">QwtCompassRose</a>* <a class="code" href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">QwtCompass::rose</a>()</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;{</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;rose;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;}</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; </div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="class_qwt_compass.html#a4dbd27ad914864813e3c575915cf6b39">  271</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_compass.html#a4dbd27ad914864813e3c575915cf6b39">QwtCompass::keyPressEvent</a>( QKeyEvent* kev )</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;{</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_slider.html#a7f675674660b458f3d8702566be995b7">isReadOnly</a>() )</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160; </div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="preprocessor">#if 0</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="keywordflow">if</span> ( kev-&gt;key() == Key_5 )</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    {</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        invalidate(); <span class="comment">// signal ???</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    }</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="keywordtype">double</span> newValue = <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>();</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; </div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keywordflow">if</span> ( kev-&gt;key() &gt;= Qt::Key_1 &amp;&amp; kev-&gt;key() &lt;= Qt::Key_9 )</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    {</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_dial.html#a7b35111549b198697fa24e8085342797">mode</a>() != <a class="code" href="class_qwt_dial.html#a7376f53193014b91643350e6e6bc85adacc23db2e06c9098f8cfbd0181184054a">RotateNeedle</a> || kev-&gt;key() == Qt::Key_5 )</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160; </div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        <span class="keywordflow">switch</span> ( kev-&gt;key() )</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;            <span class="keywordflow">case</span> Qt::Key_6:</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                newValue = 180.0 * 0.0;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;            <span class="keywordflow">case</span> Qt::Key_3:</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                newValue = 180.0 * 0.25;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;            <span class="keywordflow">case</span> Qt::Key_2:</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                newValue = 180.0 * 0.5;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            <span class="keywordflow">case</span> Qt::Key_1:</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                newValue = 180.0 * 0.75;</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;            <span class="keywordflow">case</span> Qt::Key_4:</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                newValue = 180.0 * 1.0;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            <span class="keywordflow">case</span> Qt::Key_7:</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                newValue = 180.0 * 1.25;</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;            <span class="keywordflow">case</span> Qt::Key_8:</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;                newValue = 180.0 * 1.5;</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;            <span class="keywordflow">case</span> Qt::Key_9:</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;                newValue = 180.0 * 1.75;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;        }</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;        newValue -= <a class="code" href="class_qwt_dial.html#a49356bf9512363f3233e9bf4018b8f30">origin</a>();</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        <a class="code" href="class_qwt_abstract_slider.html#a6c2021a39850832659b7ebd9ffd09e0e">setValue</a>( newValue );</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    }</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    {</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        <a class="code" href="class_qwt_abstract_slider.html#a4e0db5dfee854e895e7bc16071288ed4">QwtDial::keyPressEvent</a>( kev );</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    }</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;}</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;<span class="preprocessor">#if QWT_MOC_INCLUDE</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;<span class="preprocessor">#include &quot;moc_qwt_compass.cpp&quot;</span></div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclass_q_map_html"><div class="ttname"><a href="class_q_map.html">QMap&lt; double, QString &gt;</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a></div><div class="ttdeci">@ Ticks</div><div class="ttdoc">Ticks.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8h_source.html#l00045">qwt_abstract_scale_draw.h:45</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a></div><div class="ttdeci">@ Backbone</div><div class="ttdoc">Backbone = the line where the ticks are located.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8h_source.html#l00042">qwt_abstract_scale_draw.h:42</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_af975410588db6103f281e49d0b43c6a6"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#af975410588db6103f281e49d0b43c6a6">QwtAbstractScaleDraw::enableComponent</a></div><div class="ttdeci">void enableComponent(ScaleComponent, bool enable=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00079">qwt_abstract_scale_draw.cpp:79</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a40fdb4572ad8fdec8b93766ff5f8eda8"><div class="ttname"><a href="class_qwt_abstract_scale.html#a40fdb4572ad8fdec8b93766ff5f8eda8">QwtAbstractScale::setScaleMaxMajor</a></div><div class="ttdeci">void setScaleMaxMajor(int ticks)</div><div class="ttdoc">Set the maximum number of major tick intervals.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00189">qwt_abstract_scale.cpp:189</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a6520bb1e52571f865b21b3710786a4db"><div class="ttname"><a href="class_qwt_abstract_scale.html#a6520bb1e52571f865b21b3710786a4db">QwtAbstractScale::setScaleMaxMinor</a></div><div class="ttdeci">void setScaleMaxMinor(int ticks)</div><div class="ttdoc">Set the maximum number of minor tick intervals.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00219">qwt_abstract_scale.cpp:219</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ae9640e814b5029d7dd79cb3ba752102b"><div class="ttname"><a href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">QwtAbstractScale::setScale</a></div><div class="ttdeci">void setScale(double lowerBound, double upperBound)</div><div class="ttdoc">Specify a scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00130">qwt_abstract_scale.cpp:130</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a4e0db5dfee854e895e7bc16071288ed4"><div class="ttname"><a href="class_qwt_abstract_slider.html#a4e0db5dfee854e895e7bc16071288ed4">QwtAbstractSlider::keyPressEvent</a></div><div class="ttdeci">virtual void keyPressEvent(QKeyEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00370">qwt_abstract_slider.cpp:370</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a60eea9d9996c99abcb7d50f5ed2634f8"><div class="ttname"><a href="class_qwt_abstract_slider.html#a60eea9d9996c99abcb7d50f5ed2634f8">QwtAbstractSlider::setTotalSteps</a></div><div class="ttdeci">void setTotalSteps(uint)</div><div class="ttdoc">Set the number of steps.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00474">qwt_abstract_slider.cpp:474</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a6c2021a39850832659b7ebd9ffd09e0e"><div class="ttname"><a href="class_qwt_abstract_slider.html#a6c2021a39850832659b7ebd9ffd09e0e">QwtAbstractSlider::setValue</a></div><div class="ttdeci">void setValue(double value)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00570">qwt_abstract_slider.cpp:570</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a7f675674660b458f3d8702566be995b7"><div class="ttname"><a href="class_qwt_abstract_slider.html#a7f675674660b458f3d8702566be995b7">QwtAbstractSlider::isReadOnly</a></div><div class="ttdeci">bool isReadOnly() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00159">qwt_abstract_slider.cpp:159</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a9fb9fae0f664460bb487a12541b38d56"><div class="ttname"><a href="class_qwt_abstract_slider.html#a9fb9fae0f664460bb487a12541b38d56">QwtAbstractSlider::isValid</a></div><div class="ttdeci">bool isValid() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00125">qwt_abstract_slider.cpp:125</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_ad9b7a559149f597a060a9b48aed67715"><div class="ttname"><a href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">QwtAbstractSlider::value</a></div><div class="ttdeci">double value() const</div><div class="ttdoc">Returns the current value.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00587">qwt_abstract_slider.cpp:587</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_ada27ca51ab146554b981fafed38e41e0"><div class="ttname"><a href="class_qwt_abstract_slider.html#ada27ca51ab146554b981fafed38e41e0">QwtAbstractSlider::setWrapping</a></div><div class="ttdeci">void setWrapping(bool)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00599">qwt_abstract_slider.cpp:599</a></div></div>
<div class="ttc" id="aclass_qwt_compass_html_a05357e2950a3dc534e68e3c21f6c6b94"><div class="ttname"><a href="class_qwt_compass.html#a05357e2950a3dc534e68e3c21f6c6b94">QwtCompass::QwtCompass</a></div><div class="ttdeci">QwtCompass(QWidget *parent=NULL)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00158">qwt_compass.cpp:158</a></div></div>
<div class="ttc" id="aclass_qwt_compass_html_a06456c0c52107bfa8b1d1267fba5b86f"><div class="ttname"><a href="class_qwt_compass.html#a06456c0c52107bfa8b1d1267fba5b86f">QwtCompass::setRose</a></div><div class="ttdeci">void setRose(QwtCompassRose *rose)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00232">qwt_compass.cpp:232</a></div></div>
<div class="ttc" id="aclass_qwt_compass_html_a4dbd27ad914864813e3c575915cf6b39"><div class="ttname"><a href="class_qwt_compass.html#a4dbd27ad914864813e3c575915cf6b39">QwtCompass::keyPressEvent</a></div><div class="ttdeci">virtual void keyPressEvent(QKeyEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00271">qwt_compass.cpp:271</a></div></div>
<div class="ttc" id="aclass_qwt_compass_html_a9df297eca6d1da01e36fa14d1206831a"><div class="ttname"><a href="class_qwt_compass.html#a9df297eca6d1da01e36fa14d1206831a">QwtCompass::drawRose</a></div><div class="ttdeci">virtual void drawRose(QPainter *, const QPointF &amp;center, double radius, double north, QPalette::ColorGroup) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00218">qwt_compass.cpp:218</a></div></div>
<div class="ttc" id="aclass_qwt_compass_html_acf355d02f43378b6bde605f7b5d017e3"><div class="ttname"><a href="class_qwt_compass.html#acf355d02f43378b6bde605f7b5d017e3">QwtCompass::drawScaleContents</a></div><div class="ttdeci">virtual void drawScaleContents(QPainter *, const QPointF &amp;center, double radius) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00189">qwt_compass.cpp:189</a></div></div>
<div class="ttc" id="aclass_qwt_compass_html_af6cc3b946f3761f7ce53d3a2ec000817"><div class="ttname"><a href="class_qwt_compass.html#af6cc3b946f3761f7ce53d3a2ec000817">QwtCompass::~QwtCompass</a></div><div class="ttdeci">virtual ~QwtCompass()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00176">qwt_compass.cpp:176</a></div></div>
<div class="ttc" id="aclass_qwt_compass_html_affc879be47d42b3499d642d7e28c3a4c"><div class="ttname"><a href="class_qwt_compass.html#affc879be47d42b3499d642d7e28c3a4c">QwtCompass::rose</a></div><div class="ttdeci">const QwtCompassRose * rose() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00248">qwt_compass.cpp:248</a></div></div>
<div class="ttc" id="aclass_qwt_compass_rose_html"><div class="ttname"><a href="class_qwt_compass_rose.html">QwtCompassRose</a></div><div class="ttdoc">Abstract base class for a compass rose.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass__rose_8h_source.html#l00021">qwt_compass_rose.h:22</a></div></div>
<div class="ttc" id="aclass_qwt_compass_scale_draw_html"><div class="ttname"><a href="class_qwt_compass_scale_draw.html">QwtCompassScaleDraw</a></div><div class="ttdoc">A special scale draw made for QwtCompass.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8h_source.html#l00032">qwt_compass.h:33</a></div></div>
<div class="ttc" id="aclass_qwt_compass_scale_draw_html_a4fd750901f43b37bdfbfc8eb784ba185"><div class="ttname"><a href="class_qwt_compass_scale_draw.html#a4fd750901f43b37bdfbfc8eb784ba185">QwtCompassScaleDraw::label</a></div><div class="ttdeci">virtual QwtText label(double value) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00116">qwt_compass.cpp:116</a></div></div>
<div class="ttc" id="aclass_qwt_compass_scale_draw_html_a55c807e3399832b53b4a9783780f9dd0"><div class="ttname"><a href="class_qwt_compass_scale_draw.html#a55c807e3399832b53b4a9783780f9dd0">QwtCompassScaleDraw::setLabelMap</a></div><div class="ttdeci">void setLabelMap(const QMap&lt; double, QString &gt; &amp;map)</div><div class="ttdoc">Set a map, mapping values to labels.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00090">qwt_compass.cpp:90</a></div></div>
<div class="ttc" id="aclass_qwt_compass_scale_draw_html_a8390876c77a3e358f0a2026846e82079"><div class="ttname"><a href="class_qwt_compass_scale_draw.html#a8390876c77a3e358f0a2026846e82079">QwtCompassScaleDraw::~QwtCompassScaleDraw</a></div><div class="ttdeci">virtual ~QwtCompassScaleDraw()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00073">qwt_compass.cpp:73</a></div></div>
<div class="ttc" id="aclass_qwt_compass_scale_draw_html_aeeb7f7f2267b0a607f47f52cdc42b062"><div class="ttname"><a href="class_qwt_compass_scale_draw.html#aeeb7f7f2267b0a607f47f52cdc42b062">QwtCompassScaleDraw::labelMap</a></div><div class="ttdeci">QMap&lt; double, QString &gt; labelMap() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00099">qwt_compass.cpp:99</a></div></div>
<div class="ttc" id="aclass_qwt_compass_scale_draw_html_af5454a1e7d4d511e43c91f008fe65c06"><div class="ttname"><a href="class_qwt_compass_scale_draw.html#af5454a1e7d4d511e43c91f008fe65c06">QwtCompassScaleDraw::QwtCompassScaleDraw</a></div><div class="ttdeci">QwtCompassScaleDraw()</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8cpp_source.html#l00028">qwt_compass.cpp:28</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html"><div class="ttname"><a href="class_qwt_dial.html">QwtDial</a></div><div class="ttdoc">QwtDial class provides a rounded range control.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8h_source.html#l00050">qwt_dial.h:51</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a2ed8a0642e1c612013ba812c7e037404"><div class="ttname"><a href="class_qwt_dial.html#a2ed8a0642e1c612013ba812c7e037404">QwtDial::setScaleDraw</a></div><div class="ttdeci">void setScaleDraw(QwtRoundScaleDraw *)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00574">qwt_dial.cpp:574</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a3f64c6fbac747f735e57c2073e93bc50"><div class="ttname"><a href="class_qwt_dial.html#a3f64c6fbac747f735e57c2073e93bc50">QwtDial::setOrigin</a></div><div class="ttdeci">virtual void setOrigin(double)</div><div class="ttdoc">Change the origin.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00660">qwt_dial.cpp:660</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a49356bf9512363f3233e9bf4018b8f30"><div class="ttname"><a href="class_qwt_dial.html#a49356bf9512363f3233e9bf4018b8f30">QwtDial::origin</a></div><div class="ttdeci">double origin() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00674">qwt_dial.cpp:674</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a7376f53193014b91643350e6e6bc85ada95a22f59ec832d22f011a9421f528c41"><div class="ttname"><a href="class_qwt_dial.html#a7376f53193014b91643350e6e6bc85ada95a22f59ec832d22f011a9421f528c41">QwtDial::RotateScale</a></div><div class="ttdeci">@ RotateScale</div><div class="ttdoc">The needle is fixed, the scales are rotating.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8h_source.html#l00093">qwt_dial.h:92</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a7376f53193014b91643350e6e6bc85adacc23db2e06c9098f8cfbd0181184054a"><div class="ttname"><a href="class_qwt_dial.html#a7376f53193014b91643350e6e6bc85adacc23db2e06c9098f8cfbd0181184054a">QwtDial::RotateNeedle</a></div><div class="ttdeci">@ RotateNeedle</div><div class="ttdoc">The needle is rotating.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8h_source.html#l00089">qwt_dial.h:89</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a7b35111549b198697fa24e8085342797"><div class="ttname"><a href="class_qwt_dial.html#a7b35111549b198697fa24e8085342797">QwtDial::mode</a></div><div class="ttdeci">Mode mode() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00293">qwt_dial.cpp:293</a></div></div>
<div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00051">qwt_text.h:52</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_compass.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
